from CourseHub.models import School, University
from django.contrib import admin

class SchoolInline(admin.StackedInline):
    model = School
    extra = 5

class UniversityAdmin(admin.ModelAdmin):
    fields = ['university_name']
    inlines = [SchoolInline]
    search_fields = ['university_name']

admin.site.register(University, UniversityAdmin)